<?php $this->load->view('header', $head); ?>
		<!-- Start of first page: #one -->
		<div data-role="page" id="page-all_user">
			<div data-role="header">
				<a href="<?=site_url('admin')?>" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
				<h1>전체 사용자 정보</h1>
			</div><!-- /header -->
			
			<div data-role="content" >
				<div data-role="collapsible-set">
				<?php if($users){ foreach($users as $k => $i): ?>

					<div data-role="collapsible" data-content-theme="c">
		            	<h3><?=$i->username?></h3>
   						<ul>
   							<li data-role="fieldcontain">
								<label for="name">이름:</label>
								<?=$i->name?>
							</li>
							<li data-role="fieldcontain">
						    	<label for="birthday">생년월일:</label>
						    	<?=$i->birthday?>
							</li>
						    <li data-role="fieldcontain">
						    	<label for="gender">성별:</label>
						    	<?=$i->gender?>
							</li>
							<li data-role="fieldcontain">
								<label for="education">최종학력:</label>
								<?php if($i->education == 0) echo '초졸';
									  else if($i->education == 1) echo '중졸';
									  else if($i->education == 2) echo '초대졸';
									  else if($i->education == 3) echo '대졸';
									  else echo '대학원졸 이상'?>
							</li>
							<li data-role="fieldcontain">
								<label for="phone">전화번호:</label>
								<?=$i->phone?>
							</li>
							<li data-role="fieldcontain">
								<label for="email">이메일 주소:</label>
								<?=$i->email?>
							</li>
							<li data-role="fieldcontain">
								<label for="address">주소:</label>
								<?=$i->address_str?> <?=$i->address_detail?>
							</li>
							<li data-role="fieldcontain">
								<div class="ui-grid-b">
									<div class="ui-block-a">
										<label for="score">작성 점수:</label>
										<?=$i->score_create?>
									</div>
									<div class="ui-block-b">
										<label for="score">설문 점수:</label>
										<?=$i->score_vote?>
									</div>
							</li>
   						</ul>
					</div>
				<?php endforeach; }?>
				</div> <!-- end of collapsable set -->
			</div><!-- /content -->
			<div data-role="footer" data-position="fixed" data-theme="a">
				<?php $this->load->view('navbar', array('active'=>'admin')) ?>
			</div><!-- /footer -->
		</div><!-- /page one -->
		<!-- Start of second page: #two -->
		<div data-role="page" id="two" data-theme="a">
			
			
<?php $this->load->view('footer'); ?>
